package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Travel;
import cn.wolfcode.wolf2w.query.TravelQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelService {

    void insert(Travel travel);
    void delete(String id);
    void update(Travel travel);
    Travel get(String id);
    List<Travel> list();

    Page<Travel> query(TravelQuery qo);

    void saveOrUpdate(Travel travel);

    void audit(String id, Integer state);

    List<Travel> travelsviewnumTop3(String destId);
}
